package com.yincheng.oes.business.model.query;

import com.yincheng.oes.business.util.Page;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author yangsiyong
 * @version 1.0
 * @description: 每日打卡审核列表请求体
 * @date 2022/2/27 8:59 PM
 */
public class AuditDailyClockListReq {
    private Page page;

    private String userId;

    /**
     * 每日打卡开始日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startPunchTime;

    /**
     * 每日打卡结束日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endPunchTime;

    private List<String> userIds;

    public List<String> getUserIds() {
        return userIds;
    }

    public void addUserId(String userId) {
        if (userIds == null) {
            userIds = new ArrayList<>();
        }
        userIds.add(userId);
    }

    public void setUserIds(List<String> userIds) {
        this.userIds = userIds;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getStartPunchTime() {
        return startPunchTime;
    }

    public void setStartPunchTime(Date startPunchTime) {
        this.startPunchTime = startPunchTime;
    }

    public Date getEndPunchTime() {
        return endPunchTime;
    }

    public void setEndPunchTime(Date endPunchTime) {
        this.endPunchTime = endPunchTime;
    }

    @Override
    public String toString() {
        return "AuditDailyClockListReq{" +
                "page=" + page +
                ", userId='" + userId + '\'' +
                ", startPunchTime=" + startPunchTime +
                ", endPunchTime=" + endPunchTime +
                ", userIds=" + userIds +
                '}';
    }
}
